<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/23
  Time: 9:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加页面</title>
</head>
<body>
<jsp:include page="top.jsp"></jsp:include>
<form id="form" action="updateStu" method="post" enctype="multipart/form-data">
    <table  cellspacing="0" width="600" height="400" align="center" bgcolor="#faebd7">
        <caption>
            <h2>学生修改</h2>
        </caption>
        <input type="hidden" name="sid" value="${s.sid}"/>
        <tr>
            <td align="right">姓名:</td>
            <td><input type="text" name="sname" placeholder="请输入姓名" value="${s.sname}" /></td>
        </tr>
        <tr>
            <td align="right">年龄:</td>
            <td><input  name="age" placeholder="请输入年龄" value="${s.age}" /></td>
        </tr>
        <tr>
            <td align="right">性别:</td>
            <td>
                男<input type="radio" name="sex" value="0" <c:if test="${s.sex==0}">checked</c:if> >
                女<input type="radio" name="sex" value="1" <c:if test="${s.sex==1}">checked</c:if>>
            </td>
        </tr>
        <tr>
            <td align="right">手机号:</td>
            <td><input type="text" name="tel" placeholder="请输入手机号" value="${s.tel}" /></td>
        </tr>
        <tr>
            <td align="right">生日:</td>
            <td><input type="date" name="sbir" placeholder="请输入出生日期" value="${s.sbir}" /></td>
        </tr>
        <tr>
            <td align="right">头像:</td>
            <td>
                <input type="hidden" name="spic" value="${s.spic}"/>
                <img src="/pic/${s.spic}" height="100px"/><br/>
                <input type="file" name="newPic"/>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2"><input type="submit" value="修改"/></td>
        </tr>
    </table>
</form>
</body>
</html>
